import { configureStore } from '@reduxjs/toolkit'
import menuReducer from './modules/menu'
import userReducer from './modules/user'
import courseReducer from './modules/course'

export const store = configureStore({
  reducer: {
    menu: menuReducer,
    user: userReducer,
    course: courseReducer
  },
})

export type AppDispatch = typeof store.dispatch
export type RootState = ReturnType<typeof store.getState>
